Repository navigation
Обновление css и реализация главной страницы - #26
Merged
Merged
Conversation
…го добавил стилей
vladcheck
force-pushed
the
gauzhaev/new_ui
branch
from
October 13, 2026 12:02
54395e8 to
7ce5e3d
Compare
4 tasks
4 tasks
4 tasks
4 tasks
4 tasks done
4 tasks done
4 tasks done
vladcheck
marked this pull request as draft
October 13, 2026 12:08
4 tasks
4 tasks
4 tasks done
vladcheck
force-pushed
the
gauzhaev/new_ui
branch
from
October 13, 2026 14:09
0a79bf2 to
c0e4af2
Compare
vladcheck
marked this pull request as ready for review
October 13, 2026 14:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Этот PR реализует главную страницу приложения («Госхрон — Архив документов») и страницу создания/редактирования документа, а также приводит весь UI к единой дизайн-системе.
Главная страница — список документов (
ResourceList)ResourceListControllerреализован с нуля (раньше была заглушкаWelcome!).дд.ММ.гггг ЧЧ:мм).Назад/Вперёд, счётчик «Показано N–M»).javafx.concurrent.Task, статусы «Загрузка…» и обработка ошибок.ResourceList.fxmlполностью переписан под новый дизайн.Создание и редактирование документа (
ResourceForm)ResourceFormController+ новыйResourceForm.fxml.getById).null.Детали документа (
ResourceDetails)B/KB/MB/GB), выравнивание вправо.CONSTRAINED_RESIZE_POLICYдля таблицы.ResourceFormсresourceId.btn-ghost.Сервисный слой
ResourceService.search(filter, offset, count, sortBy, sortDir).ResourceServiceImpl(прокидываетsortBy/sortDirвApiClient.findResourcesByFilters).MockResourceService: in-memory фильтрация + сортировка (по дате / по названию,asc/desc) + пагинация.ResourceListController.initialize()(защищённыйreloadFromStart()); мёртвый хукonLoad()удалён.Стили и FXML
styles.cssпереписан (42 → ~410 строк): единая тема «Госхрон» (indigo-акцент#4f46e5, светлый градиентный фон).card,card-lg,card-title/subtitle,text-input,text-area,btn-primary,btn-ghost,modern-table/resource-table,pagination,user-chip,meta-block,combo,alert-danger, кастомные скроллбары.LoginForm.fxmlиResourceDetails.fxmlпереведены на новые классы (auth-bg,card,text-inputи т.д.).Program.javaвременно захардкоженMOCK_DATA = true, точка входа —Main.main→Program, убран лишний комментарий вLoginFormController.Исправления и тесты поверх ревью
setResourceIdвResourceDetailsController/ResourceFormControllerреактивный: поздний id (после загрузки FXML, как ставитNavigator) сам подгружает данные — раньше форма всегда открывалась в режиме создания, а детали оставались пустыми.bootstrapfx.ResourceListControllerTest(12),ResourceFormControllerTest(11); интеграционныеResourceListIntegrationTest(5),ResourceFormIntegrationTest(7).mvn verify: 70 тестов, spotless + checkstyle чистые.Как проверить
mvn spotless:check,mvn checkstyle:check,mvn test.